package com.example.demo.entity.req;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
@NoArgsConstructor
@Data
public class GetEmpsRes {
    private String name;
    private String gender;
    private Date begin;
    private Date end;
    private int page;
    private int pageSize;
    private int pageToken;
    public GetEmpsRes(String name, String gender, Date begin, Date end, int page, int pageSize, int pageToken){
        this.name = name;
        this.gender = gender;
        this.begin = begin;
        this.end = end;
        this.page = page;
        this.pageSize = pageSize;
        this.pageToken = (this.page - 1) * this.pageSize;
    }
}
